package edu.zju.udms.dnavigator.entities.kettle;

import edu.zju.udms.dnavigator.core.entity.AttributeType;
import edu.zju.udms.dnavigator.core.entity.AttributeTypeEnum;
import edu.zju.udms.dnavigator.core.entity.Entity;
import edu.zju.udms.dnavigator.core.entity.GeneralType;

public class KettleTransform extends Entity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2514139388140420158L;

	@AttributeType(AttributeTypeEnum.Key)
	public String originalId;
	
	@AttributeType(AttributeTypeEnum.Normal)
	public int runTime;
	
	@AttributeType(AttributeTypeEnum.Normal)
	public String sourceKey;
	
	public KettleTransform(){}
	
	public KettleTransform(String originalId, String name, String sourceKey,
			long ctime, long utime, String owner, String desc){
		super(name, "transform:"+name, GeneralType.Job, "Kettle", ctime, utime, owner,name, desc);
		this.originalId = originalId;
		this.sourceKey = sourceKey;
	}

	public String getOriginalId() {
		return originalId;
	}

	public void setOriginalId(String originalId) {
		this.originalId = originalId;
	}
	
}
